import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  UserInfo: {},
  secondTitle: "",
  // 学院和学历ID
  schoolData: {},
}


const mutations = {
  getUserInfo: ( state, info) => {
    state.UserInfo = info
  },
  getSecondTitle: ( state, title) => {
    state.secondTitle = title
  },
  getSchoolData: ( state, data) => {
    state.schoolData = data
  },

}
const actions = {

}

export default new Vuex.Store({
  state,
  mutations,
  actions,
  modules: {
  }
})
